package com.dianmi.seckill.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author xieqiaofu
 * @date 2021/4/8
 */
@Data
@Component
@ConfigurationProperties(prefix = "zookeeper")
public class ZookeeperConfig {

    private String connectString;

    private int connectionTimeoutMs;

    private int sessionTimeoutMs;

    private int retryTimes;

    private int sleepBetweenRetries;
}
